<link rel="stylesheet" href="/css/visualization/detailgrid.css">

<?php if (count($Biocitation)>0 && $flgCitation=="BIO"): ?>

<table class="grid" cellpadding="0" cellspacing="0" style="width: 100%;">
        <tr  style="background-color: #e6e6d2">

        <th class="tag">
            Citation
        </th>
    </tr>
<tbody style="overflow-x: hidden; overflow-y: auto; " id="gridtbody">
    <?php foreach($Biocitation as $r): ?>

    <tr>
        <td class="location" style="text-align: left;">
            <a href="<?php echo url_for('publication/viewPublication?id='.$r->Observationdepth->Observation->Research["id"])?>"> <?php echo Structures_BibTex::bibToCite(htmlspecialchars_decode($r->Observationdepth->Observation->Research["citation"]))?></a>
        </td>

     </tr>

<?php endforeach ?>

</tbody>
</table>

<?php elseif (count($NONBiocitation)>0 && $flgCitation=="NONBIO"): ?>

<table class="grid" cellpadding="0" cellspacing="0" style="width: 100%;">
        <tr  style="background-color: #e6e6d2">

        <th class="tag">
            Citation
        </th>
    </tr>
<tbody style="overflow-x: hidden; overflow-y: auto; " id="gridtbody">
    <?php foreach($NONBiocitation as $r): ?>

    <tr>
        <td class="location" style="text-align: left;">
           <a href="<?php echo url_for('publication/viewPublication?id='.$r->Observationdepth->Observation->Research["id"])?>">  <?php echo Structures_BibTex::bibToCite(htmlspecialchars_decode($r->Observationdepth->Observation->Research["citation"])) ?></a>
        </td>

     </tr>

<?php endforeach ?>

</tbody>
</table>

<?php elseif (count($Overlaycitation)>0 && $flgCitation=="OVERLAY"): ?>

<table class="grid" cellpadding="0" cellspacing="0" style="width: 100%;">
        <tr  style="background-color: #e6e6d2">

        <th class="tag">
            Citation
        </th>
    </tr>
<tbody style="overflow-x: hidden; overflow-y: auto; " id="gridtbody">
    <?php foreach($Overlaycitation as $r): ?>

    <tr>
        <td class="location" style="text-align: left;">
          <a href="<?php echo url_for('publication/viewPublication?id='.$r->Research["id"])?>">  <?php echo Structures_BibTex::bibToCite(htmlspecialchars_decode($r->Research["citation"])) ?></a>
        </td>

     </tr>

<?php endforeach ?>

</tbody>
</table>
<?php else: ?>
<?php  echo "<div style='width: 100%;text-align: center' >No Data Found</div>" ?>
<?php endif ?>